package com.jshoperxms.entity;

import javax.persistence.*;

/**
 * Created by sdywcd on 2019/1/11.
 * Des:
 */
@Entity
@Table(name = "yd_dailytask_t", schema = "jshoperxms", catalog = "")
public class YdDailytaskT {
    private String id;
    private String status;
    private long createtime;
    private String creatorid;
    private long updatetime;
    private int versiont;
    private String taskyear;
    private String taskmonth;
    private String taskday;
    private String taskdate;
    private String tasktype;
    private String rpactionid;

    @Id
    @Column(name = "ID", nullable = false, length = 25)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "STATUS", nullable = false, length = 1)
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Basic
    @Column(name = "CREATETIME", nullable = false)
    public long getCreatetime() {
        return createtime;
    }

    public void setCreatetime(long createtime) {
        this.createtime = createtime;
    }

    @Basic
    @Column(name = "CREATORID", nullable = false, length = 25)
    public String getCreatorid() {
        return creatorid;
    }

    public void setCreatorid(String creatorid) {
        this.creatorid = creatorid;
    }

    @Basic
    @Column(name = "UPDATETIME", nullable = false)
    public long getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(long updatetime) {
        this.updatetime = updatetime;
    }

    @Basic
    @Column(name = "VERSIONT", nullable = false)
    public int getVersiont() {
        return versiont;
    }

    public void setVersiont(int versiont) {
        this.versiont = versiont;
    }

    @Basic
    @Column(name = "TASKYEAR", nullable = false, length = 45)
    public String getTaskyear() {
        return taskyear;
    }

    public void setTaskyear(String taskyear) {
        this.taskyear = taskyear;
    }

    @Basic
    @Column(name = "TASKMONTH", nullable = false, length = 45)
    public String getTaskmonth() {
        return taskmonth;
    }

    public void setTaskmonth(String taskmonth) {
        this.taskmonth = taskmonth;
    }

    @Basic
    @Column(name = "TASKDAY", nullable = false, length = 45)
    public String getTaskday() {
        return taskday;
    }

    public void setTaskday(String taskday) {
        this.taskday = taskday;
    }

    @Basic
    @Column(name = "TASKDATE", nullable = false, length = 45)
    public String getTaskdate() {
        return taskdate;
    }

    public void setTaskdate(String taskdate) {
        this.taskdate = taskdate;
    }

    @Basic
    @Column(name = "TASKTYPE", nullable = false, length = 45)
    public String getTasktype() {
        return tasktype;
    }

    public void setTasktype(String tasktype) {
        this.tasktype = tasktype;
    }

    @Basic
    @Column(name = "RPACTIONID", nullable = false, length = 45)
    public String getRpactionid() {
        return rpactionid;
    }

    public void setRpactionid(String rpactionid) {
        this.rpactionid = rpactionid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        YdDailytaskT that = (YdDailytaskT) o;

        if (createtime != that.createtime) return false;
        if (updatetime != that.updatetime) return false;
        if (versiont != that.versiont) return false;
        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (status != null ? !status.equals(that.status) : that.status != null) return false;
        if (creatorid != null ? !creatorid.equals(that.creatorid) : that.creatorid != null) return false;
        if (taskyear != null ? !taskyear.equals(that.taskyear) : that.taskyear != null) return false;
        if (taskmonth != null ? !taskmonth.equals(that.taskmonth) : that.taskmonth != null) return false;
        if (taskday != null ? !taskday.equals(that.taskday) : that.taskday != null) return false;
        if (taskdate != null ? !taskdate.equals(that.taskdate) : that.taskdate != null) return false;
        if (tasktype != null ? !tasktype.equals(that.tasktype) : that.tasktype != null) return false;
        if (rpactionid != null ? !rpactionid.equals(that.rpactionid) : that.rpactionid != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (status != null ? status.hashCode() : 0);
        result = 31 * result + (int) (createtime ^ (createtime >>> 32));
        result = 31 * result + (creatorid != null ? creatorid.hashCode() : 0);
        result = 31 * result + (int) (updatetime ^ (updatetime >>> 32));
        result = 31 * result + versiont;
        result = 31 * result + (taskyear != null ? taskyear.hashCode() : 0);
        result = 31 * result + (taskmonth != null ? taskmonth.hashCode() : 0);
        result = 31 * result + (taskday != null ? taskday.hashCode() : 0);
        result = 31 * result + (taskdate != null ? taskdate.hashCode() : 0);
        result = 31 * result + (tasktype != null ? tasktype.hashCode() : 0);
        result = 31 * result + (rpactionid != null ? rpactionid.hashCode() : 0);
        return result;
    }
}
